var loginPageObj = {};

require(["util"], function () {
    $(window).ready(function () {
        var currentUrl = location.href;
        if (loginUrl.indexOf("http") != 0) {
            loginUrl = App['baseDomain'] + loginUrl;
        }
        if (login_error_message != '') {
            loginUrl += '?login_error_message=' + login_error_message;
        }
        top.window.location.href = loginUrl;

    });
});

var vm = avalon.define({
    $id: "test",
    a: 111,
    b: 222,
    $skipAarray: ["b"],
    $c: 333,
    firstName: "司徒",
    lastName: "正美",
    fullName: {//一个包含set或get的对象会被当成PropertyDescriptor，
        set: function(val) {//里面必须用this指向scope，不能使用scope
            var array = (val || "").split(" ");
            this.firstName = array[0] || "";
            this.lastName = array[1] || "";
        },
        get: function() {
            return this.firstName + " " + this.lastName;
        }
    },
    array: [1,2,3],
    array2:[{e: 1}, {e: 2}],
    d: {
        k: 111,
        $skipArray: ["f"],
        f: 2222
    }
});